package ch06.ex2_6_NothingType

/**
 * Created by caozp-ytcyc2007 on 2017/5/29.
 */

fun fail(message: String): Nothing {
    throw IllegalArgumentException(message)
}

fun main(args: Array<String>) {
    fail("Error occurred")
}